package com.example.demo.javatest.thread;

/**
 * Created by liujiahao on 2019/3/12.
 */
public class ThreadB extends Thread{
    private  Service service;
    public ThreadB(Service service){
        this.service=service;
    }
    public void  run(){
        service.stop();
    }
}
